<template>
<div class="layerRtb layerRtb-threecolumn">
    <three-title :title="{name:'信息'}"></three-title>
    <div class="layerRtb-scroll thinScroll" v-scrollHeight = "137">
        <div class="analyItem anItemBor" @click="clickFourShow(0)">
            <p class="analyItemTit tx-center">基础资料</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">总 </span>
                    <span>5项</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">完 </span>
                    <span>5项</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">待</span>
                    <span>5项</span>
                </p>
                <span class="circlemark circlemark-purple">待</span>
            </div>
        </div>
        <div class="analyItem anItemBor" @click="clickFourShow(1)">
            <p class="analyItemTit tx-center">培训资料</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">总 </span>
                    <span>5项</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">完 </span>
                    <span>5项</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">待</span>
                    <span>5项</span>
                </p>
                <span class="circlemark circlemark-purple">待</span>
            </div>
        </div>
        <div class="analyItem anItemBor" @click="clickFourShow(2)">
            <p class="analyItemTit tx-center">管理协议</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">总 </span>
                    <span>5项</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">完 </span>
                    <span>5项</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">待</span>
                    <span>5项</span>
                </p>
                <span class="circlemark circlemark-purple">待</span>
            </div>
        </div>
        <div class="analyItem anItemBor" @click="clickFourShow(3)">
            <p class="analyItemTit tx-center">项目协议</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">总 </span>
                    <span>5项</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">完 </span>
                    <span>5项</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">待</span>
                    <span>5项</span>
                </p>
                <span class="circlemark circlemark-purple">待</span>
            </div>
        </div>
        <div class="analyItem anItemBor" @click="clickFourShow(4)">
            <p class="analyItemTit tx-center">责任协议</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">总 </span>
                    <span>5项</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">完 </span>
                    <span>5项</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">待</span>
                    <span>5项</span>
                </p>
                <span class="circlemark circlemark-purple">待</span>
            </div>
        </div>
    </div>
    <div class="layerRtb-footer">
        <div class="analyItem">
            <p class="analyItemTit tx-center">综合</p>
           <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">总 </span>
                    <span>5项</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">完 </span>
                    <span>5项</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">待</span>
                    <span>5项</span>
                </p>
                <span class="circlemark circlemark-purple">待</span>
            </div>
        </div>
           <!-- 四段渲染容器 -->
    <transition-group class="animated faster" enter-active-class="animated faster slideInRight" leave-active-class="animated faster slideOutRight">
        <!-- 问题 threeresultDetail -->
        <rx-recruitment v-if="fourIndex === 0" :key="0"></rx-recruitment>
        <rx-training v-if="fourIndex === 1" :key="1"></rx-training>
        <rx-stay v-if="fourIndex === 2" :key="2"></rx-stay>
        <rx-use v-if="fourIndex === 3" :key="3"></rx-use>
        <rx-departure v-if="fourIndex === 4" :key="4"></rx-departure>
    </transition-group>
    </div>
</div>
</template>
<script>
import rxDeparture from './userInfo/departure'
import rxRecruitment from './userInfo/recruitment'
import rxStay from './userInfo/stay'
import rxUse from './userInfo/use'
import rxTraining from './userInfo/training'
export default {
    data () {
        return {
            fourIndex: undefined
        }
    },
    components: {
        rxDeparture,
        rxRecruitment,
        rxStay,
        rxUse,
        rxTraining
    },
    created () {

    },
    methods: {
        clickFourShow (index) {
            this.fourIndex = index
        }
    }
}
</script>
